package com.sanley.piss.model.po;

import com.sanley.piss.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 角色表
 *
 * @author limk
 * @date 2021/1/26 8:30
 */
@EqualsAndHashCode
@Data
@ApiModel(value = "角色表",description = "角色分配说明")
public class Role extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 7068485233234713169L;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty(value = "角色标识号")
    @NotBlank(message = "角色标识号不能为空")
    private String code;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "账号状态   0：正常  1：锁定  2：禁用",hidden = true)
    private Integer state;
}